 /* jshint esversion: 6 */
 const state = {
     loginStatus: localStorage.getItem('patient_token') || null,
     token: localStorage.getItem('patient_token') || '',
     id: '',
     endid: '',
     flag: true,
     end: [],

 };
 const mutations = {
     //是否登录成功
     SET_PATIENT_STATUS(state, data) {
         state.loginStatus = data
     },
     //获取一波token
     SET_PATIENT_TOKEN(state, token) {
         state.token = token
     },
     findid(state, id) {
         state.id = id;
     },
     endid(state, id) {
         state.endid = id;
     },
     flag(state, flag) {
         state.flag = flag;
     },
     end(state, obj) {
         state.end.unshift(obj);
     },

 };
 const actions = {

 };
 const getters = {

 };

 export default {
     namespaced: true,
     state,
     mutations,
     actions,
     getters
 };